@extends("admin.layout.main")

@section("content")
    <?php $role = Session::get('authModule');?>
    <!--主页面头部信息-->
    <div class="page-header">
        <h1>
            创客报单
        </h1>
    </div>
    <!-- /.page-header -->

    <div class="page-header">
        <a class="btn btn-xs btn-success" href="{{ route('admin.member.addMember') }}">
            新增报单
        </a>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <table id="simple-table" class="table  table-bordered table-hover" style="text-align: center;">
                <thead>
                <tr>
                    <th>报单时间</th>
                    <th>城市合伙人ID</th>
                    <th>推荐人ID</th>
                    <th>新创客所属人</th>
                    <th>市场</th>
                    <th>报单数量</th>
                    <th>操作</th>
                </tr>
                </thead>

                <tbody>
                @foreach($data as $v)
                <tr>

                    <td>{{$v->created_at}}</td>
                    <td>{{$v->user_id}}</td>
                    <td>{{$v->recommender_id}}</td>
                    <td>{{$v->parent}}</td>
                    <td><?php $market = array('1'=>'创业区',2=>'创新区',3=>'创客区');?>{{$market[$v->user_area]}}</td>
                    <td>{{$v->number}}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{{ route('admin.member.viewMember',['id'=>$v->id]) }}">查看</a>
                    </td>
                </tr>
                    @endforeach
                </tbody>
            </table>
            {{ $data->appends($where)->links('admin.layout.page') }}
        </div>
    </div>
@endsection
